﻿using System;

namespace OpenLS.Spreadsheet.Formats.Biff.Records
{
    internal class ControlInfo
    {
        private short accel1;
        private ushort reserved2;
        private ushort ad;

        public void Read(BiffReaderContext context)
        {
            this.ad = context.ReadUInt16();
            this.accel1 = context.ReadInt16();
            this.reserved2 = context.ReadUInt16();
        }

        public void Write(BiffWriterWorkbookContext context)
        {
            context.Write(ad);
            context.Write(accel1);
            context.Write(reserved2);
        }
    }
}